/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package week4;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Document;
import org.w3c.dom.DOMException;



/**
 *
 * @author 0833809
 */
public class xmlMaker {

    Document document;
    DocumentBuilderFactory factory =  DocumentBuilderFactory.newInstance();

    try {

    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.newDocument();
    }
    catch (ParserConfigurationException pce) {
    pce.printStackTrace();     }
    try {
    Node root = document.createElement("Orders");
    document.appendChild(root);


}
